package com.xzx.springbootredis.service;

import com.xzx.springbootredis.entity.Goods;
import org.springframework.stereotype.Service;

import java.util.Optional;

@Service
public interface GoodsService {
    //添加商品
    public int save(Goods goods);
    public Goods findByTitle(String title);
    public Optional<Goods> findById(int id);
}
